package cn.car.mapper;

import cn.car.domains.entity.CameraSnapshotEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CameraSnapshotMapper {

    int insert(CameraSnapshotEntity cameraSnapshotEntity);

    List<Long> selectBeforeDate(@Param("offset") Date offset);

    void deleteImage(@Param("ids") List<Long> ids);

    CameraSnapshotEntity getLastSnapshot(@Param("cameraIp") String cameraIp, @Param("date") Date date);
}
